/// title : "运动距离"
/// value : "630.30"
/// unit : "米"

class MetricItem {
  MetricItem({
      String? title, 
      String? value, 
      String? unit,}){
    _title = title;
    _value = value;
    _unit = unit;
}

  MetricItem.fromJson(dynamic json) {
    _title = json['title'];
    _value = json['value'];
    _unit = json['unit'];
  }
  String? _title;
  String? _value;
  String? _unit;
MetricItem copyWith({  String? title,
  String? value,
  String? unit,
}) => MetricItem(  title: title ?? _title,
  value: value ?? _value,
  unit: unit ?? _unit,
);
  String? get title => _title;
  String? get value => _value;
  String? get unit => _unit;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['title'] = _title;
    map['value'] = _value;
    map['unit'] = _unit;
    return map;
  }

}